<!-- $Id: school_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->

{include file="pageheader.htm"}
<!-- comment content list -->
<div class="main-div">
  <table width="100%">
    <tr>
      <td>
      <a href="mailto:{$msg.email}"><b>{if $msg.user_name}{$msg.user_name}{else}匿名{/if}</b></a>&nbsp;于
      &nbsp;{$msg.sent_time}&nbsp;对&nbsp;<b>{$id_value}</b>&nbsp;发表评论
    </td>
    </tr>
    <tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td>
        <div style="overflow:hidden; word-break:break-all;">{$msg.message}</div>
        </td>
    </tr>
    <tr>
      <td align="center">
        {if $msg.is_show eq 0}
        <input type="button" onclick="location.href='school_manage.php?act=check&check=allow&id={$msg.message_id}'" value="隐藏" class="button" />
        {else}
        <input type="button" onclick="location.href='school_manage.php?act=check&check=forbid&id={$msg.message_id}'" value="显示" class="button" />
        {/if}
    </td>
    </tr>
  </table>
</div>

{if $reply_info.content}
<!-- reply content list -->
<div class="main-div">
  <table width="100%">
    <tr>
      <td>
      {$lang.admin_user_name}&nbsp;<a href="mailto:{$msg.email}"><b>{$reply_info.user_name}</b></a>&nbsp;于
      &nbsp;{$reply_info.sent_time}&nbsp;回复
    </td>
    </tr>
    <tr>
      <td><hr color="#dadada" size="1"></td>
    </tr>
    <tr>
      <td>
        <div style="overflow:hidden; word-break:break-all;">{$reply_info.content}</div>
      </td>
    </tr>
  </table>
</div>
{/if}

<div class="main-div">
<form method="post" action="school_manage.php?act=action" name="theForm" onsubmit="return validate()">
<table border="0" align="center">
  <tr><th colspan="2">
  <strong>回复评论</strong>
  </th></tr>
  <tr>
    <td>用户名:</td>
    <td><input name="user_name" type="text" {if $reply_info.user_name eq ""}value="{$admin_info.user_name}"{else} value="{$reply_info.user_name}"{/if} size="30" readonly="true" /></td>
  </tr>
  <tr>
    <td>回复内容:</td>
    <td><textarea name="message" cols="50" rows="4" wrap="VIRTUAL">{$reply_info.message}</textarea></td>
  </tr>
  {if $reply_info.content}
  <tr>
    <td>&nbsp;</td>
    <td> 	提示: 此条评论已有回复, 如果继续回复将更新原来回复的内容!</td>
  </tr>
  {/if}

  <tr>
    <td>&nbsp;</td>
    <td>
      <input name="submit" type="submit" value="{$lang.button_submit}" class="button">
      <input type="reset" value="{$lang.button_reset}" class="button">
      <input type="hidden" name="message_id" value="{$msg.message_id}">
      <input type="hidden" name="school_id" value="{$msg.school_id}">
    </td>
  </tr>
</table>
</form>
</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">
<!--
document.forms['theForm'].elements['content'].focus();

/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("content",  no_content);
    return validator.passed();
}

onload = function() {
    // 开始检查订单
    startCheckOrder();
}
//-->
</script>
{/literal}
{include file="pagefooter.htm"}